<?php
declare (strict_types=1);

namespace app\index\listener;

class Logs
{
    public function handle($model)
    {
        if (method_exists($model, 'recordLog')) {
            $model::recordLog($model);
        }
    }
}